package top.idetect.client.modules.cloth.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import top.idetect.client.modules.cloth.model.Clothinfo;
import top.idetect.client.modules.cloth.model.DynamicConfig;
import top.idetect.client.modules.cloth.mapper.DynamicConfigMapper;
import top.idetect.client.modules.cloth.service.DynamicConfigService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 动态配置表 服务实现类
 * </p>
 *
 * @author wjh
 * @since 2024-04-11
 */
@Service
public class DynamicConfigServiceImpl extends ServiceImpl<DynamicConfigMapper, DynamicConfig> implements DynamicConfigService {

    @Override
    public DynamicConfig getByConfigName(String configName) {
        return getOne(new QueryWrapper<DynamicConfig>().lambda().eq(DynamicConfig::getConfigName, configName));
    }
}
